package com.hrpmar.mapper;

import com.hrpmar.pojo.Department;
import com.hrpmar.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 31984 on 2017/11/29.
 */
public interface powerMapper {
    //查询全部
    List<Department> list();
    //条件查询
    List<Role> search(Integer id);
    //条件修改
    Integer update(Department func);
    //修改条件查询
    Department searchIdby(@Param("Ids") Integer Ids);
    //增加
    Integer inserts(Department func);
    //增加角色
    Integer playadd(Role role);
    //修改二级菜单
    Integer roleUpdate(Role role);
    //删除二级菜单
     Integer  del(Integer roleId);
}
